Skip to content

Update config.py#357

Open
aabinnath-ops wants to merge 1 commit intoCodeXBotz:mainfrom
aabinnath-ops:patch-1
Open

Update config.py#357
aabinnath-ops wants to merge 1 commit intoCodeXBotz:mainfrom
aabinnath-ops:patch-1

Conversation

@aabinnath-ops
Copy link

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the bot’s runtime configuration defaults in config.py, effectively baking in a specific deployment’s credentials and IDs as fallback values.

Changes:

  • Hardcoded Telegram bot credentials and API identifiers as environment-variable fallbacks.
  • Replaced previously-empty defaults for channel/owner/force-sub/admin settings with specific numeric IDs.
  • Adjusted default port and admin list construction behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +11 to +14
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "8320311408:AAHP9LonV308YMhuOShvbfOvl8OJVznlV_g")

#Your API ID from my.telegram.org
APP_ID = int(os.environ.get("APP_ID", ""))
APP_ID = int(os.environ.get("APP_ID", "28902436"))

#Your API Hash from my.telegram.org
API_HASH = os.environ.get("API_HASH", "")
API_HASH = os.environ.get("API_HASH", "78e3c8b856fd5bd13b52066a52404c3c")

#Database
DB_URI = os.environ.get("DATABASE_URL", "")
DB_URI = os.environ.get("DATABASE_URL", "XCDKJ3T6H5WikLU3@cluster0.ktll4yi.mongodb.net")

#OWNER ID
OWNER_ID = int(os.environ.get("OWNER_ID", ""))
OWNER_ID = int(os.environ.get("OWNER_ID", "6190987091"))
Comment on lines 41 to 44
try:
ADMINS=[]
for x in (os.environ.get("ADMINS", "").split()):
for x in (os.environ.get("ADMINS", "6190987091").split()):
ADMINS.append(int(x))

ADMINS.append(OWNER_ID)
ADMINS.append(1250450587)
ADMINS.append(6190987091)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants